Optimal. Leaf size=104 \[ -\frac {b^2 (b d e+b c f-3 a d f) x}{d^2 f^2}+\frac {b^3 x^2}{2 d f}-\frac {(b c-a d)^3 \log (c+d x)}{d^3 (d e-c f)}+\frac {(b e-a f)^3 \log (e+f x)}{f^3 (d e-c f)} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.08, antiderivative size = 104, normalized size of antiderivative = 1.00, number of steps
used = 2, number of rules used = 1, integrand size = 22, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.045, Rules used = {84}
\begin {gather*} -\frac {b^2 x (-3 a d f+b c f+b d e)}{d^2 f^2}-\frac {(b c-a d)^3 \log (c+d x)}{d^3 (d e-c f)}+\frac {(b e-a f)^3 \log (e+f x)}{f^3 (d e-c f)}+\frac {b^3 x^2}{2 d f} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 84
Rubi steps
\begin {align*} \int \frac {(a+b x)^3}{(c+d x) (e+f x)} \, dx &=\int \left (-\frac {b^2 (b d e+b c f-3 a d f)}{d^2 f^2}+\frac {b^3 x}{d f}+\frac {(-b c+a d)^3}{d^2 (d e-c f) (c+d x)}+\frac {(-b e+a f)^3}{f^2 (-d e+c f) (e+f x)}\right ) \, dx\\ &=-\frac {b^2 (b d e+b c f-3 a d f) x}{d^2 f^2}+\frac {b^3 x^2}{2 d f}-\frac {(b c-a d)^3 \log (c+d x)}{d^3 (d e-c f)}+\frac {(b e-a f)^3 \log (e+f x)}{f^3 (d e-c f)}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.06, size = 99, normalized size = 0.95 \begin {gather*} \frac {b^2 d f (d e-c f) x (6 a d f+b (-2 d e-2 c f+d f x))-2 (b c-a d)^3 f^3 \log (c+d x)+2 d^3 (b e-a f)^3 \log (e+f x)}{2 d^3 f^3 (d e-c f)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.12, size = 151, normalized size = 1.45
method | result | size |
default | \(\frac {b^{2} \left (\frac {1}{2} b d f \,x^{2}+3 a d f x -b c f x -b d e x \right )}{d^{2} f^{2}}+\frac {\left (-a^{3} d^{3}+3 a^{2} b c \,d^{2}-3 a \,b^{2} c^{2} d +b^{3} c^{3}\right ) \ln \left (d x +c \right )}{d^{3} \left (c f -d e \right )}+\frac {\left (a^{3} f^{3}-3 a^{2} b e \,f^{2}+3 a \,b^{2} e^{2} f -b^{3} e^{3}\right ) \ln \left (f x +e \right )}{f^{3} \left (c f -d e \right )}\) | \(151\) |
norman | \(\frac {b^{2} \left (3 a d f -b c f -b d e \right ) x}{d^{2} f^{2}}+\frac {b^{3} x^{2}}{2 d f}+\frac {\left (a^{3} f^{3}-3 a^{2} b e \,f^{2}+3 a \,b^{2} e^{2} f -b^{3} e^{3}\right ) \ln \left (f x +e \right )}{f^{3} \left (c f -d e \right )}-\frac {\left (a^{3} d^{3}-3 a^{2} b c \,d^{2}+3 a \,b^{2} c^{2} d -b^{3} c^{3}\right ) \ln \left (d x +c \right )}{\left (c f -d e \right ) d^{3}}\) | \(156\) |
risch | \(\frac {b^{3} x^{2}}{2 d f}+\frac {3 b^{2} a x}{d f}-\frac {b^{3} c x}{d^{2} f}-\frac {b^{3} e x}{d \,f^{2}}+\frac {\ln \left (-f x -e \right ) a^{3}}{c f -d e}-\frac {3 \ln \left (-f x -e \right ) a^{2} b e}{f \left (c f -d e \right )}+\frac {3 \ln \left (-f x -e \right ) a \,b^{2} e^{2}}{f^{2} \left (c f -d e \right )}-\frac {\ln \left (-f x -e \right ) b^{3} e^{3}}{f^{3} \left (c f -d e \right )}-\frac {\ln \left (d x +c \right ) a^{3}}{c f -d e}+\frac {3 \ln \left (d x +c \right ) a^{2} b c}{\left (c f -d e \right ) d}-\frac {3 \ln \left (d x +c \right ) a \,b^{2} c^{2}}{\left (c f -d e \right ) d^{2}}+\frac {\ln \left (d x +c \right ) b^{3} c^{3}}{\left (c f -d e \right ) d^{3}}\) | \(269\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.34, size = 163, normalized size = 1.57 \begin {gather*} \frac {{\left (b^{3} c^{3} - 3 \, a b^{2} c^{2} d + 3 \, a^{2} b c d^{2} - a^{3} d^{3}\right )} \log \left (d x + c\right )}{c d^{3} f - d^{4} e} + \frac {{\left (a^{3} f^{3} - 3 \, a^{2} b f^{2} e + 3 \, a b^{2} f e^{2} - b^{3} e^{3}\right )} \log \left (f x + e\right )}{c f^{4} - d f^{3} e} + \frac {b^{3} d f x^{2} - 2 \, {\left (b^{3} d e + {\left (b^{3} c - 3 \, a b^{2} d\right )} f\right )} x}{2 \, d^{2} f^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.69, size = 209, normalized size = 2.01 \begin {gather*} \frac {b^{3} c d^{2} f^{3} x^{2} + 2 \, b^{3} d^{3} f x e^{2} - 2 \, {\left (b^{3} c^{2} d - 3 \, a b^{2} c d^{2}\right )} f^{3} x + 2 \, {\left (b^{3} c^{3} - 3 \, a b^{2} c^{2} d + 3 \, a^{2} b c d^{2} - a^{3} d^{3}\right )} f^{3} \log \left (d x + c\right ) - {\left (b^{3} d^{3} f^{2} x^{2} + 6 \, a b^{2} d^{3} f^{2} x\right )} e + 2 \, {\left (a^{3} d^{3} f^{3} - 3 \, a^{2} b d^{3} f^{2} e + 3 \, a b^{2} d^{3} f e^{2} - b^{3} d^{3} e^{3}\right )} \log \left (f x + e\right )}{2 \, {\left (c d^{3} f^{4} - d^{4} f^{3} e\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 1.17, size = 165, normalized size = 1.59 \begin {gather*} \frac {{\left (b^{3} c^{3} - 3 \, a b^{2} c^{2} d + 3 \, a^{2} b c d^{2} - a^{3} d^{3}\right )} \log \left ({\left | d x + c \right |}\right )}{c d^{3} f - d^{4} e} + \frac {{\left (a^{3} f^{3} - 3 \, a^{2} b f^{2} e + 3 \, a b^{2} f e^{2} - b^{3} e^{3}\right )} \log \left ({\left | f x + e \right |}\right )}{c f^{4} - d f^{3} e} + \frac {b^{3} d f x^{2} - 2 \, b^{3} c f x + 6 \, a b^{2} d f x - 2 \, b^{3} d x e}{2 \, d^{2} f^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 1.50, size = 109, normalized size = 1.05 \begin {gather*} x\,\left (\frac {3\,a\,b^2}{d\,f}-\frac {b^3\,\left (c\,f+d\,e\right )}{d^2\,f^2}\right )+\frac {b^3\,x^2}{2\,d\,f}-\frac {\ln \left (c+d\,x\right )\,{\left (a\,d-b\,c\right )}^3}{d^3\,\left (c\,f-d\,e\right )}+\frac {\ln \left (e+f\,x\right )\,{\left (a\,f-b\,e\right )}^3}{f^3\,\left (c\,f-d\,e\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________